//
//  GKRedPacketViewCell.m
//  jinyishe
//
//  Created by xiaoxiaoniuzai on 2017/11/8.
//  Copyright © 2017年 wy. All rights reserved.
//

#import "GKRedPacketViewCell.h"
#import "GKLRedSelectModel.h"

@interface GKRedPacketViewCell() {
    
}

@property (weak, nonatomic) IBOutlet UIImageView *backImageView;
@property (weak, nonatomic) IBOutlet UILabel *moenyLabel;
@property (weak, nonatomic) IBOutlet UILabel *conditionLabel;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *selectedImageView;
@property (weak, nonatomic) IBOutlet UILabel *expiredDateLabel;
@property (weak, nonatomic) IBOutlet UILabel *projectDateLabel;


@end


@implementation GKRedPacketViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = [UIColor clearColor];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)setRedPacketModel:(GKLRedSelectModel *)redPacketModel {
    _redPacketModel = redPacketModel;
    NSString *date = [redPacketModel.endTime.stringValue date_transformDateFormatter:@"yyyy-MM-dd"];
    self.expiredDateLabel.text = [NSString stringWithFormat:@"(%@到期)", date];
    self.moenyLabel.text = [NSString stringWithFormat:@"%.2f", _redPacketModel.money.doubleValue];
}

- (void)setRedPacketSelecteStatu:(BOOL)selecte {
//    NSString *imageStr;
//    if ([_redPacketModel.type isEqualToString:@"0"] || _redPacketModel.type == nil) {
//        imageStr = selecte ? @"shopping_ico_radiobox_s" : @"redCircle";
//    }else {
//        imageStr = selecte ? @"huangGou" : @"huangQuan";
//    }
//    self.selectedImageView.image = [UIImage imageNamed:imageStr];
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
